import { StyleSheet, View, Pressable } from 'react-native'
import React from 'react'
import { router } from 'expo-router'
import { SafeAreaView } from 'react-native-safe-area-context'
import { StatusBar } from 'expo-status-bar'
import { Button } from '@rneui/base'
const My = () => {
	const goTo = (path: string): void => {
		router.push(path)
	}

	return (
		<SafeAreaView style={styles.container}>
			<View>
				<Button onPress={() => goTo('/sign-up')} title='注册'></Button>
				<Button onPress={() => goTo('/sign-in')} title='登录'></Button>
			</View>
			{/* <StatusBar animated={true} backgroundColor='#ff0000' style='auto' /> */}
			{/* <StatusBar style='auto' /> */}
		</SafeAreaView>
	)
}

export default My

const styles = StyleSheet.create({
	container: {
		flex: 1,
		// backgroundColor: 'red',
	},
})
